/**
 * Copyright (C), 2020, Y2 T205
 * FileName: MemberFeingService
 * Author: Lenovo
 * Date: 2020-05-25 20:59
 * Description:
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */


package com.atguigu.gulimall.gulimallauth.feign;


import com.atguigu.common.utils.R;

import com.atguigu.gulimall.gulimallauth.vo.SocialUser;
import com.atguigu.gulimall.gulimallauth.vo.UserLoginVo;
import com.atguigu.gulimall.gulimallauth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author Lenovo
 * @create 2020-05-25
 * @since 1.0.0
 */
@FeignClient("gulimall-member")
public interface MemberFeingService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
     R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth2/login")
     R oauthlogin(@RequestBody SocialUser socialUser) throws Exception ;


}
